package com.dc.tests;

import org.testng.annotations.Test;

/**
 * @author xcj
 * @date 2022/5/27 16:11
 */
public class LoginDemo {

    @Test
    public void init(){
        System.out.println("进行初始化！！！");
    }

    @Test(dependsOnMethods = "init")
    public void login(){
        System.out.println("进行登录！！！");
        throw new NullPointerException("用户不存在！！");
    }

    @Test(dependsOnMethods = "login")
    public void logout(){
        System.out.println("进行注销！！！");
    }


}
